package com.kfh.ybracelet.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 身份证信息
 * Created by Aaron on 16/9/27.
 */
public class IdInfo implements Parcelable {

    private String address;
    private String birth;
    private String name;
    private String nationality;
    private String num;
    private String sex;
    private String start_date;
    private String end_date;
//    private boolean face_success;
//    private boolean back_success;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getStart_date() {
        return start_date;
    }

    public void setStart_date(String start_date) {
        this.start_date = start_date;
    }

    public String getEnd_date() {
        return end_date;
    }

    public void setEnd_date(String end_date) {
        this.end_date = end_date;
    }

//    public boolean isFace_success() {
//        return face_success;
//    }
//
//    public void setFace_success(boolean face_success) {
//        this.face_success = face_success;
//    }
//
//    public boolean isBack_success() {
//        return back_success;
//    }
//
//    public void setBack_success(boolean back_success) {
//        this.back_success = back_success;
//    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.address);
        dest.writeString(this.birth);
        dest.writeString(this.name);
        dest.writeString(this.nationality);
        dest.writeString(this.num);
        dest.writeString(this.sex);
        dest.writeString(this.start_date);
        dest.writeString(this.end_date);
//        dest.writeByte(this.face_success ? (byte) 1 : (byte) 0);
//        dest.writeByte(this.back_success ? (byte) 1 : (byte) 0);
    }

    public IdInfo() {
    }

    protected IdInfo(Parcel in) {
        this.address = in.readString();
        this.birth = in.readString();
        this.name = in.readString();
        this.nationality = in.readString();
        this.num = in.readString();
        this.sex = in.readString();
        this.start_date = in.readString();
        this.end_date = in.readString();
//        this.face_success = in.readByte() != 0;
//        this.back_success = in.readByte() != 0;
    }

    public static final Parcelable.Creator<IdInfo> CREATOR = new Parcelable.Creator<IdInfo>() {
        @Override
        public IdInfo createFromParcel(Parcel source) {
            return new IdInfo(source);
        }

        @Override
        public IdInfo[] newArray(int size) {
            return new IdInfo[size];
        }
    };
}
